package cn.com.dragonsoftbravo.utils.azure.utils;

import com.microsoft.azure.storage.blob.CloudBlockBlob;

public class MetadataUtils {

	public static void setMetaData(CloudBlockBlob blob, String key, String value) {
		try {
			blob.getMetadata().put(key, value);
			blob.uploadMetadata();
		} catch (Exception ex) {

		}
	}

	public static String getMetaData(CloudBlockBlob blob, String key) {
		return blob.getMetadata().get(key);
	}

}
